package com.teamwork.module03.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.teamwork.common.entity.module03.ArticleCares;
import com.teamwork.common.result.Result;

import java.util.List;

public interface ArticleCaresService extends IService<ArticleCares> {

    //根据用户id和文章id收藏文章
    boolean InsertOneByUserId(Integer userid, Integer artid);

    ArticleCares getByUidAndAid(Integer userid, Integer artid);

    boolean deleteOneByUidAndAid(Integer userid, Integer artid);

    List<Integer> getMyCaresArtIds(Integer userid);
}
